package com.cloud.shopping;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author John.zhang
 * @version Id: ShoppingCanalApplication, v 1.0 2020/12/30 16:43 ZhiYong Exp $
 * 排除掉操作数据库的 DataSourceAutoConfiguration bean，这里的service不需要操作数据库
 */

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@EnableFeignClients(basePackages = {
        "com.cloud.shopping.goods.feign",
        "com.cloud.shopping.search.feign",
        "com.cloud.shopping.page.feign"})
public class ShoppingCanalApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShoppingCanalApplication.class, args);
    }
}
